package com.eric.domain.po;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 设备库存表
 * </p>
 *
 * @author 新哥
 * @since 2024-03-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("equipment")
public class Equipment implements Serializable {
    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("eq_name")
    private String eqName;

    @TableField("type_name")
    private String typeName;

    @TableField("encode")
    private String encode;

    @TableField("brand")
    private String brand;

    @TableField("pieces")
    private String pieces;

    @TableField("number")
    private Integer number;

    @TableField("model")
    private String model;

    @TableField("location")
    private String location;

    @TableField("description")
    private String description;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;

    @TableField("version")
    @Version
    private Integer version;

    @TableField("status")
    private Integer status;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField("create_by")
    private String createBy;

    @TableField("last_update_by")
    private String lastUpdateBy;
}
